Fix Riverpod UI not updating by replacing state with new instances instead of mutating existing objects in place.